package com.example.homework.db.apis

import com.example.homework.db.models.Charact
import com.example.homework.db.responses.CharacterResponse
import retrofit2.http.GET
import retrofit2.http.Path
import retrofit2.http.Query

interface CharactersApi {
    @GET("character/")
    suspend fun getAll(@Query("page") page: Int): CharacterResponse

    @GET("character/{id}")
    suspend fun getOne(@Path("id") id: Int): Charact
}